<%@page import="util.TextFormat"%>
<%@page contentType="text/html;charset=utf-8" pageEncoding="utf-8"%>
<%@page import="java.util.List"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.Map"%>
<%
	List<Map<String, Object>> recommendBooks = (List<Map<String, Object>>)request.getAttribute("recommendBooks");
	if(recommendBooks == null){
		recommendBooks = new ArrayList<Map<String, Object>>();
	}
%>
<h2>
	编辑推荐
</h2>
<div id=__bianjituijian/danpin>
	<div class=second_c_02>
	<%
		for(int i = 0; i < recommendBooks.size(); i++){
			Map<String, Object> recommendBook = recommendBooks.get(i);
	%>
			<div class=second_c_02_b1>
				<div class=second_c_02_b1_1>
					<a href='<%=request.getContextPath()%>/productImages/<%=TextFormat.getText(recommendBook, "product_pic")%>' target='_blank'>
						<img src='<%=request.getContextPath()%>/productImages/<%=TextFormat.getText(recommendBook, "product_pic")%>' width=70 border=0 />
					</a>
				</div>
				<div class=second_c_02_b1_2>
					<h3>
						<a href='<%=request.getContextPath()%>/product/detail.do?id=<%=TextFormat.getText(recommendBook, "id")%>' target='_blank' title='<%=TextFormat.getText(recommendBook, "product_name")%>'><%=TextFormat.getText(recommendBook, "product_name")%></a>
					</h3>
					<h4>
						作者：<%=TextFormat.getText(recommendBook, "author")%> 著
						<br />
						出版社：<%=TextFormat.getText(recommendBook, "publishing")%>&nbsp;&nbsp;&nbsp;&nbsp;
						出版时间：<%=TextFormat.formatToYMD(recommendBook, "publish_time")%>
					</h4>
					<h5>
						<%=TextFormat.getText(recommendBook, "description")%>
					</h5>
					<h6>
						定价：￥<%=TextFormat.formatNumber(recommendBook, "fixed_price")%>&nbsp;&nbsp;
						当当价：￥<%=TextFormat.formatNumber(recommendBook, "dang_price")%>
					</h6>
					<div class=line_xx></div>
				</div>
			</div>
	<%
		}
	%>
	</div>
</div>
